
/**
* @module http.chatroom
* @author: Hjava
* @description: 直播 HTTP 接口
* @since: 2019-09-27 17:19:43
*/
Object.defineProperty(exports, "__esModule", { value: true });
var http_core_1 = __webpack_require__(/*! _http/http.core */ "./src/core/http/http.core.ts");
exports.default = {
    /**
     * 游客注册
     * @param options data{appId|deviceType}
     */
    touristRegister: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/registerTourist', options);
    },
    /**
     * 进入房间
     * @param options data{crId|uid|appId|thirdId}
     */
    enter: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/enter', options);
    },
    /**
     * 离开房间
     * @param options data{crId|uid|appId|thirdId}
     */
    leave: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/leave', options);
    },
    /**
     * 获取房间用户
     * @param options data{crId}
     */
    getUsers: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/getUsers', options);
    },
    /**
     * 获取部分用户，展示可用
     * @param options data{crid|count}
     */
    getSomeUsers: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/getSampleUsers', options);
    },
    /**
     * 获取当前用户总数
     * @param options data{crId}
     */
    getCurrentUserCount: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/getCurUserCount', options);
    },
    getPraiseAndUserCount: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/getStat', options);
    },
    /**
     * 获取直播总浏览数
     * @param options data{crId|startTime}
     */
    getTotalViewCountByLive: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/getTotalViewCountByLive', options);
    },
    /**
     * 获取直播总赞数
     * @param options data{crId|startTime}
     */
    getPraiseCountByLive: function (options) {
        options.data.svid = 420;
        http_core_1.default.request('/crinfo/api/v1/getPraiseCountByLive', options);
    }
};


//# sourceURL=webpack://MTDX/./src/core/http/http.chatroom.ts?